package cz.muni.fi.pv168.addressbook.daos;

import cz.muni.fi.pv168.addressbook.entities.Person;
import java.util.List;

/**
 *
 * @author Michal Ďuriš
 */
public interface PersonManager {

    /**
     *
     * @param person person to be created
     */
    public void createPerson(Person person);

    /**
     *
     * @param person
     */
    public void updatePerson(Person person);

    /**
     *
     * @param person
     */
    public void deletePerson(Person person);

    /**
     *
     * @return
     */
    public List<Person> getAllPersons();

    /**
     *
     * @param id
     *
     * @return
     */
    public Person getPersonById(Long id);

    /**
     *
     * @param searchString
     *
     * @return
     */
    public List<Person> findPerson(String searchString);

}
